package com.hs.live.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 短信发送记录
    */
@ApiModel(description="短信发送记录")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_sms")
public class SmsDO implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="主键id")
    private Long id;

    /**
     * 验证码
     */
    @TableField(value = "code")
    @ApiModelProperty(value="验证码")
    private Integer code;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    @ApiModelProperty(value="手机号")
    private String phone;

    /**
     * 发送时间
     */
    @TableField(value = "send_time")
    @ApiModelProperty(value="发送时间")
    private Date sendTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}